﻿using System;
using System.Reflection;

namespace TC
{
    public class ReflectStaticField : VariableNode
    {
        public Type classType;
        public FieldInfo field;

        public ValueOutput<object> valueOut;

        public override void OnCreate()
        {
            base.OnCreate();

            valueOut = this.AddValueOutPort<object>("valueOut",
                () =>
                {
                    return field.GetValue(null);
                });
        }
    }
}
